package com.gupaoedu.vip.strategy;

import java.util.HashMap;
import java.util.Map;

public class PushMsgUtils {
    public static final String ANDROID = "Android";
    public static final String IOS = "IOS";

    private static Map<String,PushMsg> map = new HashMap<>();

    static {
        map.put(ANDROID,new AndroidPushMsg());
        map.put(IOS,new IOSPushMsg());
    }

    public static PushMsg get(String type){
        if(map.containsKey(type)){
            return map.get(type);
        }
        return map.get(ANDROID);
    }
}
